#include <stdio.h>
#include <stdlib.h>

#define LIM 30

char * s_gets(char * st, int n);

int main(void)
{
    char number[LIM];
    char * end;
    long value;

    puts("Enter a number (empty line to quit):");
    while (s_gets(number, LIM) && number != '\0')
    {
        value = strtol(number, )
    }
    

}